#include <string.h>
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char** argv) 
{
	int response[4] = {0};
	char* responseStr[4] = {0};
	
	response[0] = 2;
	response[1] = -1;
	response[2] = -1;

	asprintf(&responseStr[0], "%d", response[0]);
	asprintf(&responseStr[1], "%x", response[1]);
	asprintf(&responseStr[2], "%x", response[2]);

	int i = 0;
	for(i = 0; i < 3; i++)
	{
		printf("responseStr[%d]:%s\n", i, responseStr[i]);
		free(responseStr[i]);
		responseStr[i] = NULL;
	}


	return 0;
}
